package com.ssy.lingxi.enhance.repository;


import com.ssy.lingxi.enhance.entity.InnerWorkflowRecordDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * 内部工作流记录 - 实体仓库
 * @author fhj
 * @version 2.0.0
 * @date 2020/10/17
 */
public interface InnerWorkflowRecordRepository extends JpaRepository<InnerWorkflowRecordDO, Long>, JpaSpecificationExecutor<InnerWorkflowRecordDO> {

    void deleteByProduceNoticeOrderId(Long produceNoticeOrderId);

    void deleteByProduceNoticeOrderIdIn(List<Long> ids);

    List<InnerWorkflowRecordDO> findByProduceNoticeOrderIdAndType(Long produceNoticeOrderId, Integer type);
}
